/*
 * @Author: liuYang codkly@gmail.com
 * @Date: 2022-12-05 17:23:28
 * @LastEditors: liuYang codkly@gmail.com
 * @LastEditTime: 2022-12-06 13:28:01
 * @FilePath: \coding\nest\blog_alpha\src\permission\permission.entity.ts
 * @Description:
 * 暂无备注
 */
import {
  Column,
  CreateDateColumn,
  DeleteDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';
import {BaseEntity} from '../../entity/base.entity'

@Entity('permission')
export class PermissionEntity extends BaseEntity{

  @Column({
    comment: '名称',
  })
  name: string;

  @Column({
    comment: '权限key',
  })
  key: string;

  @Column({
    comment: '组件地址',
  })
  component: string;
  
  @Column({
    comment: '地址',
  })
  path: string;

  @Column({
    comment: '类型',
    // 1级页面 2级菜单 3级按钮
  })
  type: string;


}
